//
//  BChargeCashCashArrivelAmountView.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2019/1/7.
//  Copyright © 2019 guoshikeji. All rights reserved.
//

#import "BChargeCashCashArrivelAmountView.h"

@interface BChargeCashCashArrivelAmountView ()

@end

@implementation BChargeCashCashArrivelAmountView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self setupSubviews];
    }
    return self;
}

- (void)setupSubviews {
    self.titleLabel = [QMUILabel new];
    self.titleLabel.textColor = [UIColor qmui_colorWithHexString:@"#666666"];
    self.titleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
    [self addSubview:self.titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self).offset(20.0);
        make.top.mas_equalTo(self).offset(5.0);
    }];
    //
    self.amountLabel = [QMUILabel new];
    self.amountLabel.textColor = [UIColor qmui_colorWithHexString:@"#333333"];
    self.amountLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
    [self addSubview:self.amountLabel];
    [self.amountLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.titleLabel);
        make.top.mas_equalTo(self.titleLabel);
        make.bottom.mas_equalTo(self);
    }];
}

- (void)setTitle:(NSString *)title {
    self.titleLabel.text = title;
}

- (void)setAmount:(NSString *)amount {
    self.amountLabel.text = amount?:@"--";
}

@end
